package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.dto.AddCategoryDto;
import com.sangeng.domain.dto.UpdateCategoryDto;
import com.sangeng.domain.entity.Category;
import com.sangeng.domain.vo.CategoryVo;
import com.sangeng.domain.vo.PageVo;

import java.util.List;

public interface CategoryService extends IService<Category> {

    ResponseResult<List<CategoryVo>> getCategoryList();

    ResponseResult<List<CategoryVo>> getAllCategoryList();

    ResponseResult<PageVo> getCategoryList(Integer pageNum,Integer pageSize);

    ResponseResult<String> addCategory(AddCategoryDto categoryDto);

    ResponseResult<String> updateCategory(UpdateCategoryDto categoryDto);

    ResponseResult<String> deleteCategoryById(List<Long> idList);

    ResponseResult<CategoryVo> getCategoryById(Long id);
}
